package day01_07.day03;

import java.util.HashMap;
import java.util.Scanner;

public class Main02 {

    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        int[] array = new int[9];
        for (int i = 0 ; i < array.length ; i ++){
            array[i] = scn.nextInt();
        }
        HashMap<Integer , Integer> map = new HashMap<>();
        for (int i = 0 ; i < array.length ; i++){
            if (map.containsKey(array[i])){
                map.put(array[i] , (map.get(array[i]) + 1));
            }
            else {map.put(array[i] , 1);}
        }
        for (int i = 0; i < map.size(); i++) {
            if (map.get(array[i]) >= (array.length / 2)){
                System.out.println(array[i]);
            }
        }
    }
}
